import win_tools
import os

# 设置账号密码
print('设置Administrator账号和密码')
back = win_tools.win.exe('net user Administrator 3594@HKUszh')
if back.returncode == 0:
    print('设置成功')
else:
    print('设置失败')
# 跳过开机密码验证
back = win_tools.win.winlogin('Administrator', '3594@HKUszh')
if back == True:
    print('跳过成功')
else:
    print('跳过失败')
# 删除菜单虚拟键盘
try:
    os.remove(r'C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Accessories\Accessibility\On-Screen Keyboard.lnk')
    print('已删除屏幕键盘')
    input('按任何键继续。。。')
except:
    print('删除屏幕键盘未成功')
    input('按任何键继续。。。')
